﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniCAP.Core
{
    public interface IMessagePublisher
    {
        Task PublishAsync<T>(string topic, T message, CancellationToken cancellationToken = default);
        Task PublishAsync<T>(string topic, T message, IDbTransaction transaction, CancellationToken cancellationToken = default);
    }
}
